const _ = require('lodash');

// 创建多个集合
const set1 = [1, 2, 3, 4, 5];
const set2 = [2, 3, 4, 5, 6];
const set3 = [3, 4, 5, 6, 7];

// 找到集合的交集
const intersectionArray = _.intersection(set1, set2, set3);

// 打印结果
console.log("交集:", intersectionArray);
